package com.cyloer.strategy.controller;

import com.cyloer.strategy.common.DisCountPay;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author: xiangliu5
 * @date: 2020/1/29 21:52
 */
@RestController(value = "strategy")
public class StrategyController {

    @GetMapping(value = "discount/{code}")
    public String discount(@PathVariable("code") String code) {
        new DisCountPay(code);
        return "";
    }
}
